<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>气度网 - 气度如水</title>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/product_list.css" >
</head>

<body>
	<form action="${ctx}/my/update_user" method="post">
	<div class="container_list">
		<div class="title">
        	<div class="ctrl">用户个人资料</div>
        </div> 
        <div class="detail">
        	<s:if test="status !=null ">
        		<li align="center"><font color="red">提示：<s:property value="status"/></font></li>        	
        	</s:if>
        	<li>
				<div class="detail_1">帐号</div><div class="detail_2"><s:property value="userDTO.userName"/></div>
            </li>
        	<li>
				<div class="detail_1">真实姓名</div><div class="detail_2"><input name="userDTO.realName" value="<s:property value="userDTO.realName"/>" /></div>
            </li>
        	<li>
				<div class="detail_1">电子邮件</div><div class="detail_2"><input name="userDTO.email" value="<s:property value="userDTO.email"/>" /></div>
            </li>
        	<li>
				<div class="detail_1">手机号码</div><div class="detail_2"><input name="userDTO.mobileNo" value="<s:property value="userDTO.mobileNo"/>" /></div>
            </li>
        	<li>
				<div class="detail_1">固定电话</div><div class="detail_2"><input name="userDTO.telNo" value="<s:property value="userDTO.telNo"/>" /></div>
            </li> 
        	<li>
				<div class="detail_1">用户性别</div>
                <div class="detail_2">
                	<select name="userDTO.sex">
		    			<s:if test="userDTO.sex == 1" >
                    		<option value="1" selected>男</option>
                        	<option value="2">女</option>
						</s:if>
		    			<s:else>
                    		<option value="1" >男</option>
                        	<option value="2" selected>女</option>
						</s:else>               	
                    </select>
                </div>
            </li>
        	<li>
				<div class="detail_1">用户类型</div>
				<div class="detail_2">
		    		<s:if test="userDTO.category == 0" >企业用户</s:if>
		    		<s:else>校园用户</s:else>
				</div>
            </li> 
        	<li>
				<div class="detail_1">所属企业</div>
				<div class="detail_2"><s:property value="userDTO.companyId" /></div>
				<div id="notJoinCompany" class="detail_2"><a href="#">暂无，点击这里加入</a></div>
            </li>
        	<li>
				<div class="detail_1">是否企业管理员</div>
				<div class="detail_2">
					<s:if test="userDTO.category == 0" >
		    			<s:if test="userDTO.adminFlag == 1" >企业管理员</s:if>
		    			<s:else>普通企业用户</s:else>	
		    		</s:if>
		    		<s:else>
		    			<s:if test="userDTO.adminFlag == 1" >校园管理员</s:if>
		    			<s:else>普通校园用户</s:else>			    			
		    		</s:else>				
				</div>
            </li>
            <li>
				<div class="detail_1">是否通过验证</div>
				<div class="detail_2">
		    		<s:if test="userDTO.verifyFlag == 1" >已审核通过</s:if>
		    		<s:else>未审核通过</s:else>				
				</div>
            </li>
            <li>
				<div class="detail_1">帐号创建时间</div><div class="detail_2"><s:property value="userDTO.createDate"/></div>
            </li>
            <li>
				<div class="detail_1"><input type="submit" value="确认修改" /></div><div class="detail_2"><input type="submit" value="重置" /></div>
            </li>
		</div>     
    </div>
    </form>
</body>
</html>
